// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

import './assets/style/index.scss'
// 引入flex.css
import 'flex.css/dist/flex.css'
import 'flex.css/dist/data-flex.css'
import VueAwesomeSwiper from"vue-awesome-swiper"
import "swiper/dist/css/swiper.css"
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css"
import "./assets/style/overload.css"
Vue.config.productionTip = false
Vue.use(VueAwesomeSwiper)
Vue.use(ElementUI)
/* eslint-disable no-new */
window.onorientationchange=function(){
  if(window.orientation==90||window.orientation==-90){
    alert("为了您的良好体验，请将手机/平板竖屏操作");
  }
}
router.afterEach((to,from,next) => {

  window.scrollTo(0,0);

})
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
